package unicamp.mc;

import container_classes.Place;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class AddLocalActivity extends Activity {
	
	Button btOk;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.addlocal);
        
        btOk = (Button) findViewById(R.id.btAdd);
        btOk.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				okClick(); 
			}
		});
        
        Spinner spinner = (Spinner) findViewById(R.id.spType);
        ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
                this, R.array.types_array, android.R.layout.simple_spinner_item);
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        spinner.setAdapter(adapter);
        
	}
	
	private void okClick() {
//		Place place = new Place();
	}
}
